﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class DragLayoutGroup : DragLayoutGroupBase
{

    public bool lockX;
    public bool lockY;
   

    private void Start()
    {
        for (int i = 0; i < childGroupRectTransform.childCount; i++)
        {
            DragLayout dragLayout = childGroupRectTransform.GetChild(i).gameObject.AddComponent<DragLayout>();
            dragLayout.restrictedRect = childGroupRectTransform;
            dragLayout.lockX = lockX;
            dragLayout.lockY = lockY;
            dragLayout.dragLayoutGroup = this;
        }
    }

}
